\hypertarget{class_system_signal_handler}{}\section{System\+Signal\+Handler Class Reference}
\label{class_system_signal_handler}\index{System\+Signal\+Handler@{System\+Signal\+Handler}}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{class_system_signal_handler_a50e022b8b70b7168a20e3ae91c158c70}{add\+Handler} (const raft\+::signal signal, sighandler handler)
\item 
raft\+::kstatus \hyperlink{class_system_signal_handler_ac66db8af116e4f887706e58acb0781bb}{call\+Handler} (const raft\+::signal signal, F\+I\+F\+O \&fifo, \hyperlink{classraft_1_1kernel}{raft\+::kernel} $\ast$kernel, void $\ast$data)
\end{DoxyCompactItemize}


\subsection{Member Function Documentation}
\hypertarget{class_system_signal_handler_a50e022b8b70b7168a20e3ae91c158c70}{}\index{System\+Signal\+Handler@{System\+Signal\+Handler}!add\+Handler@{add\+Handler}}
\index{add\+Handler@{add\+Handler}!System\+Signal\+Handler@{System\+Signal\+Handler}}
\subsubsection[{add\+Handler(const raft\+::signal signal, sighandler handler)}]{\setlength{\rightskip}{0pt plus 5cm}void System\+Signal\+Handler\+::add\+Handler (
\begin{DoxyParamCaption}
\item[{const raft\+::signal}]{signal, }
\item[{sighandler}]{handler}
\end{DoxyParamCaption}
)}\label{class_system_signal_handler_a50e022b8b70b7168a20e3ae91c158c70}
add\+Handler -\/ adds the signal handler \textquotesingle{}handler\textquotesingle{} to this container. If the handler already exists for that signal then the last one to get added supercedes it (i.\+e., we\textquotesingle{}re relying on the base class to be called first and derived classes to potentially add newer handlers). 
\begin{DoxyParams}{Parameters}
{\em signal} & -\/ const raft\+::signal \\
\hline
{\em handler} & -\/ sighandler \\
\hline
\end{DoxyParams}
\hypertarget{class_system_signal_handler_ac66db8af116e4f887706e58acb0781bb}{}\index{System\+Signal\+Handler@{System\+Signal\+Handler}!call\+Handler@{call\+Handler}}
\index{call\+Handler@{call\+Handler}!System\+Signal\+Handler@{System\+Signal\+Handler}}
\subsubsection[{call\+Handler(const raft\+::signal signal, F\+I\+F\+O \&fifo, raft\+::kernel $\ast$kernel, void $\ast$data)}]{\setlength{\rightskip}{0pt plus 5cm}raft\+::kstatus System\+Signal\+Handler\+::call\+Handler (
\begin{DoxyParamCaption}
\item[{const raft\+::signal}]{signal, }
\item[{F\+I\+F\+O \&}]{fifo, }
\item[{{\bf raft\+::kernel} $\ast$}]{kernel, }
\item[{void $\ast$}]{data}
\end{DoxyParamCaption}
)}\label{class_system_signal_handler_ac66db8af116e4f887706e58acb0781bb}
call\+Handler -\/ calls the handler for the param signal, an exception is thrown if the signal doesn\textquotesingle{}t have a handler and a sigterm is passed throughout the system. 
\begin{DoxyParams}{Parameters}
{\em signal} & -\/ const raft\+::signal \\
\hline
{\em fifo} & -\/ F\+I\+F\+O\& current port that called the signal \\
\hline
{\em kernel} & -\/ \hyperlink{classraft_1_1kernel}{raft\+::kernel}$\ast$, currently called kernel \\
\hline
{\em data} & -\/ void$\ast$ \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
raft\+::kstatus -\/ returns whatever the handler says otherwise proceed 
\end{DoxyReturn}

\begin{DoxyExceptions}{Exceptions}
{\em \hyperlink{class_no_signal_handler_found_exception}{No\+Signal\+Handler\+Found\+Exception}} & \\
\hline
\end{DoxyExceptions}


The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
systemsignalhandler.\+hpp\item 
systemsignalhandler.\+cpp\end{DoxyCompactItemize}
